/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface WmsOtherLog extends BasicModel<WmsOtherLog> {
  cbustype?: string; // 业务类型
  cbuskey?: string; // 业务KEY
  u8Djno?: string; // u8单据号
}

export const wmsOtherLogList = (params?: WmsOtherLog | any) =>
  defHttp.get<WmsOtherLog>({ url: adminPath + '/log/other/wmsOtherLog/list', params });

export const wmsOtherLogListData = (params?: WmsOtherLog | any) =>
  defHttp.post<Page<WmsOtherLog>>({ url: adminPath + '/log/other/wmsOtherLog/listData', params });

export const wmsOtherLogForm = (params?: WmsOtherLog | any) =>
  defHttp.get<WmsOtherLog>({ url: adminPath + '/log/other/wmsOtherLog/form', params });

export const wmsOtherLogSave = (params?: any, data?: WmsOtherLog | any) =>
  defHttp.postJson<WmsOtherLog>({ url: adminPath + '/log/other/wmsOtherLog/save', params, data });

export const wmsOtherLogDelete = (params?: WmsOtherLog | any) =>
  defHttp.get<WmsOtherLog>({ url: adminPath + '/log/other/wmsOtherLog/delete', params });
